package com.zhiche.lisa.bms.dao.model.contract;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 合同附件表
 * </p>
 *
 * @author hongbo
 * @since 2018-10-30
 */
@TableName("lisa_contract_accessory")
public class ContractAccessory extends Model<ContractAccessory> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 合同主键
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 附件名
     */
	@TableField("file_name")
	private String fileName;
    /**
     * 附件类型
     */
	@TableField("file_type")
	private String fileType;
    /**
     * 文件key
     */
	@TableField("file_key")
	private String fileKey;
	/**
	 * 文件大小
	 */
	@TableField("file_size")
	private String fileSize;
	/**
	 * 上传时间
	 */
	@TableField("file_upload_date")
	private Date fileUploadDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileKey() {
		return fileKey;
	}

	public void setFileKey(String fileKey) {
		this.fileKey = fileKey;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public Date getFileUploadDate() {
		return fileUploadDate;
	}

	public void setFileUploadDate(Date fileUploadDate) {
		this.fileUploadDate = fileUploadDate;
	}

	@Override
	public String toString() {
		return "ContractAccessory{" +
			", id=" + id +
			", headId=" + headId +
			", fileName=" + fileName +
			", fileType=" + fileType +
			", fileKey=" + fileKey +
			"}";
	}
}
